package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the CERTIFICATE_APPLY database table.
 * 
 */
@Entity
@Table(name="CERTIFICATE_APPLY")
@NamedQuery(name="CertificateApply.findAll", query="SELECT c FROM CertificateApply c")
public class CertificateApply implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CERTIFICATE_APPLY_CERAPPID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CERTIFICATE_APPLY_CERAPPID_GENERATOR")
	@Column(name="CERAPP_ID")
	private long cerappId;

	@Column(name="APPLICATION_TIME")
	private Timestamp applicationTime;

	@Column(name="CERAPP_GOAL")
	private String cerappGoal;

	@Column(name="CERAPP_PERSON")
	private String cerappPerson;

	@Column(name="CERAPP_REMARK")
	private String cerappRemark;

	@Column(name="CERAPP_RES")
	private String cerappRes;

	@Column(name="CERAPP_STATE")
	private BigDecimal cerappState;

	@Column(name="CERAPP_USE")
	private String cerappUse;

	@Column(name="DEMANDED_DATE")
	private Timestamp demandedDate;

	//bi-directional many-to-one association to Area
	@ManyToOne
	@JoinColumn(name="AREA_ID")
	private Area area;

	//bi-directional many-to-one association to StaffInformation
	@ManyToOne
	@JoinColumn(name="STAIN_ID")
	private StaffInformation staffInformation;

	public CertificateApply() {
	}

	public long getCerappId() {
		return this.cerappId;
	}

	public void setCerappId(long cerappId) {
		this.cerappId = cerappId;
	}

	public Timestamp getApplicationTime() {
		return this.applicationTime;
	}

	public void setApplicationTime(Timestamp applicationTime) {
		this.applicationTime = applicationTime;
	}

	public String getCerappGoal() {
		return this.cerappGoal;
	}

	public void setCerappGoal(String cerappGoal) {
		this.cerappGoal = cerappGoal;
	}

	public String getCerappPerson() {
		return this.cerappPerson;
	}

	public void setCerappPerson(String cerappPerson) {
		this.cerappPerson = cerappPerson;
	}

	public String getCerappRemark() {
		return this.cerappRemark;
	}

	public void setCerappRemark(String cerappRemark) {
		this.cerappRemark = cerappRemark;
	}

	public String getCerappRes() {
		return this.cerappRes;
	}

	public void setCerappRes(String cerappRes) {
		this.cerappRes = cerappRes;
	}

	public BigDecimal getCerappState() {
		return this.cerappState;
	}

	public void setCerappState(BigDecimal cerappState) {
		this.cerappState = cerappState;
	}

	public String getCerappUse() {
		return this.cerappUse;
	}

	public void setCerappUse(String cerappUse) {
		this.cerappUse = cerappUse;
	}

	public Timestamp getDemandedDate() {
		return this.demandedDate;
	}

	public void setDemandedDate(Timestamp demandedDate) {
		this.demandedDate = demandedDate;
	}

	public Area getArea() {
		return this.area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

	public StaffInformation getStaffInformation() {
		return this.staffInformation;
	}

	public void setStaffInformation(StaffInformation staffInformation) {
		this.staffInformation = staffInformation;
	}

}